/**
 * 
 * @param {*} source  数据源 数组或者对象类型
 * @param {*} field   需要修改的图片字段数组 默认为['avatar']
 * @returns 
 */
export const SplicingImagePaths = (source,fields = ['avatar'])=>{
     if(Array.isArray(source)){
        const list = source.map(item=>{
            fields.forEach(val=>{
                item[val] = process.env.BASEURL + item[val]
            })
            return  item
        })
        return list
     } 
     source[fields[0]] = process.env.BASEURL + source[fields[0]]
     return source
}